package pacman.level;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Properties;

public class LevelLoader {
    private Properties prop;
    private Hashtable<String, String> table;

    public LevelLoader(String filePath) throws FileNotFoundException, IOException {
		prop = new Properties();
		prop.load(new FileInputStream(filePath));
		table = new Hashtable<String, String>();
		for (Object iterable_element : prop.keySet()) {
		    table.put((String) iterable_element, prop.getProperty((String) iterable_element));
		}
    }
    public Hashtable<String, String> getLevelChain() {
    	return table;
    }

}
